<template>
	<div class="home">
		<img
			alt="Vue logo"
			src="../assets/logo.png"
		>
		<h1>Second Child Home Page</h1>
    <el-button type="primary" @click="cl">主要按钮</el-button>
	</div>
</template>

<script>
import { METHODS } from 'http';

export default {
	name: 'Home',
  methods:{
    cl(){
      this.$alert('这是一段内容', '标题名称', {
          confirmButtonText: '确定',
          callback: action => {
            this.$message({
              type: 'info',
              message: `action: ${ action }`
            });
          }
        });
    }
  }
}
</script>
